package cn.git.shiro.service.impl;

import cn.git.shiro.entity.User;
import cn.git.shiro.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    /**
     * 根据用户名获取用户
     *
     * @param name
     * @return
     */
    @Override
    public User getUserByName(String name) {
        User user = new User();
        user.setName(name);
        user.setId("1");
        // 123456 MD5 加盐 3313 三次加密
        user.setPwd("3e2c6b7df0d3106109c74663d887df3b");
        user.setRid("1");
        return user;
    }
}
